package com.asset.salesforce.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.ConvertedAccountDaoImpl;
import com.asset.salesforce.domain.ConvertedAccount;

@Service
@Transactional(readOnly=true)
public class ConvertedAccountService {
	@Autowired
	private ConvertedAccountDaoImpl accountDaoImpl;
	
	@Transactional(readOnly = false)
	public void addConvertedAccount(ConvertedAccount convertedAccount){
		accountDaoImpl.add(convertedAccount);
	}
	@Transactional(readOnly = true)
	public ConvertedAccount getConvertedAccountById(ConvertedAccount convertedAccount,Integer id){
		return accountDaoImpl.getById(id,convertedAccount);
	}

}
